//
//  TwoDimensionCodeViewController.h
//  CPICMobileServiceApp
//
//  Created by lizhiwei on 13-2-18.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZBarSDK.h"
#import <MessageUI/MFMessageComposeViewController.h>
//#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>

@interface TwoDimensionCodeViewController : UIViewController<ZBarReaderDelegate,MFMessageComposeViewControllerDelegate>
{
    UIButton * ScanningBtn;
    UIButton * UrlBtn;
    UIButton * SmsBtn;
    UIButton * ContactInfoBtn;
    UIButton * CancelBtn;
    
    UIImageView *imageview;
    ZBarReaderViewController *Reader;
    ABAddressBookRef addressBook;
    ABRecordRef person;
}

@property(nonatomic,retain) UIButton * ScanningBtn;
@property(nonatomic,retain) UIButton * UrlBtn;
@property(nonatomic,retain) UIButton * SmsBtn;
@property(nonatomic,retain) UIButton * ContactInfoBtn;
@property(nonatomic,retain) UIButton * CancelBtn;

@property(nonatomic,retain) UIImageView *imageview;

@property(nonatomic,retain) NSString * UrlContent;//URL内容
@property(nonatomic,retain) NSString * SmsContent;//SMS内容
@property(nonatomic,retain) NSString * Message;//短信内容
@property(nonatomic,retain) NSString * Number;//号码
@property(nonatomic,retain) NSString * ContactInfoContent;//联系人信息内容
@property(nonatomic,retain) NSString * FirstName;
@property(nonatomic,retain) NSString * FamilyName;
//电话号码、手机号码、传真号码
@property(nonatomic,retain) NSString * CallNumber;
@property(nonatomic,retain) NSString * Telephone;
@property(nonatomic,retain) NSString * FaxTelephone;
//电子邮箱
@property(nonatomic,retain) NSString * Email;
//公司网址
@property(nonatomic,retain) NSString * CompanyUrl;
//街道、城市、省份、邮政编码、国家
@property(nonatomic,retain) NSString * Street;
@property(nonatomic,retain) NSString * City;
@property(nonatomic,retain) NSString * Province;
@property(nonatomic,retain) NSString * PostalCode;
//职称、公司
@property(nonatomic,retain) NSString * JobTitle;
@property(nonatomic,retain) NSString * Company;
@property(nonatomic,retain) ZBarReaderViewController *Reader;
@property(nonatomic,retain) NSArray *theArray;
@property(nonatomic,retain) NSArray *ContactInfoArray;

@end
